package com.example.win.android_banduyujia.venuesactivity.activity.classactivity.describe;

import android.os.Bundle;
import android.view.View;

import com.example.win.android_banduyujia.R;
import com.example.win.android_banduyujia.lib.util.StrUtils;
import com.example.win.android_banduyujia.peopleactivity.ui.activity.BaseTitleBarActivity;

/**
 * 课程描述
 * Created by Win on 2015/9/28.
 */
public class DescribeActivity extends BaseTitleBarActivity {
    public static final String  TAG = DescribeActivity.class.getSimpleName();

    private String  mSave;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.view_item_describe);

        InitTitles();
        InitViews();
    }

    private void InitTitles() {
        showLeftBackButton();
        setTitle(R.string.layout_text_view_classes_describe);
        setRightTextViewListener(R.string.layout_data_save_button, mRightListener);
    }

    protected View.OnClickListener mRightListener = new View.OnClickListener(){

        @Override
        public void onClick(View v) {
            if(StrUtils.isEmpty(mSave)){
                showToast(R.string.layout_data_save_button);
                return;
            }
            SaveText();
        }
    };

    private void SaveText() {

    }

    private void InitViews() {

    }
}
